import request from "@/plugins/axios";
// 满额列表
export function listApi(data) {
  return request({
    url: "/shop/gifts/index",
    method: "post",
    data,
  });
}
//  满额添加
export function addApi(data) {
  return request({
    url: "/shop/gifts/create",
    method: "post",
    data,
  });
}
//  满额修改
export function saveApi(data) {
  return request({
    url: "/shop/gifts/save",
    method: "post",
    data,
  });
}
// 满额上下架
export function stateApi(data) {
  return request({
    url: "/shop/gifts/state",
    method: "post",
    data,
  });
}
//  删除
export function delApi(data) {
  return request({
    url: "/shop/gifts/delete",
    method: "post",
    data,
  });
}
